package com.atguigu.springcloud.alibaba.controller;

import com.atguigu.springcloud.alibaba.config.NacosConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class ConfigClientController {

    private Logger logger = LoggerFactory.getLogger(ConfigClientController.class);

    @Resource
    private NacosConfig config;

    @GetMapping("/config/info")
    private String getConfigInfo(){
        return config.getConfigInfo();
    }
}
